﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCWeb.Models; // this is required...

namespace MVCWeb.Controllers
{
    public class GetTotalUserController : Controller
    {
        //
        // GET: /GetTotalUser/

        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";

            return View();
        }


        public ActionResult GetTotalUser()
        {
            try
            {
                int number = WebMasterClientServices.GetTotalUser();
                return RedirectToAction("WebMasterPage", number);

            }
            catch
            {
                return View();
            }
        }


    }
}
